//问答接口
import { requestPort } from '@/utils/request.js';

//获取推荐老师列表
export function recommendTeacher(params) {
  return requestPort({
    url: '/api/Jianghunew/major_select',
    method: 'POST',
    params: params
  });
}

//获取精选问答列表
export function getWinnowList(params) {
  return requestPort({
    url: '/api/Jianghunew/getMijiList_new',
    method: 'POST',
    params: params
  });
}

//等你来答列表
export function getWaitList(params) {
  return requestPort({
    url: '/api/Jianghunew/getLaizhanList',
    method: 'POST',
    params: params
  });
}

//获取问题详情
export function getQuizDetail(params) {
  return requestPort({
    url: '/api/Jianghunew/getQuizDetail',
    method: 'POST',
    params: params
  });
}

// 获取用户信息
export function getUserInfo(params) {
  return requestPort({
    url: '/api/user/getUserInfo',
    method: 'POST',
    params: params
  });
}

//提问时获取老师详情
export function getMajorDetail(params) {
  return requestPort({
    url: '/api/Jianghunew/get_major_detail',
    method: 'POST',
    params: params
  });
}

//获取标签列表
export function getLabel(params) {
  return requestPort({
    url: '/api/Jianghunew/getlabel',
    method: 'POST',
    params: params
  });
}

//获取提问活动标签
export function getActivityLabel(params) {
  return requestPort({
    url: '/api/jianghunew/get_activity_label',
    method: 'POST',
    params: params
  });
}

//我要提问 提交
export function addQuizSubmit(params) {
  return requestPort({
    url: '/api/Jianghunew/addQuizSubmit',
    method: 'POST',
    params: params
  });
}

//获取专家列表
export function getMajorList(params) {
  return requestPort({
    url: '/api/user/get_major_apply',
    method: 'POST',
    params: params
  });
}

//获取优惠券列表
export function getCouponList(params) {
  return requestPort({
    url: '/api/Jianghunew/couponlist',
    method: 'POST',
    params: params
  });
}


/* chatRoom使用  start */


//回答者暂停时间
export function stopAnswer(params) {
  return requestPort({
    url: '/api/Jianghunew/stop_answer',
    method: 'POST',
    params: params
  });
}

//获取问答提示语
export function getPrompt(params) {
  return requestPort({
    url: '/api/Jianghunew/get_prompt',
    method: 'POST',
    params: params
  });
}

//撤回消息
export function revokeMSg(params) {
  return requestPort({
    url: '/api/Jianghunew/revoke',
    method: 'POST',
    params: params
  });
}

//快速回复
export function getQuickReply(params) {
  return requestPort({
    url: '/api/Jianghunew/getQuicReply',
    method: 'POST',
    params: params
  });
}

//更新正在输入中
export function setEntering(params) {
  return requestPort({
    url: '/api/Jianghunew/to_message_user',
    method: 'POST',
    params: params
  });
}

//发送答案之前判断
export function sendCheck(params) {
  return requestPort({
    url: '/api/Jianghunew/sendcheck',
    method: 'POST',
    params: params
  });
}


// 更新未读消息
export function check_read(params) {
  return requestPort({
    url: '/api/Jianghunew/check_read',
    method: 'POST',
    params: params
  });
}

//将发送的消息上报给服务器
export function backupMessage(params) {
  return requestPort({
    url: '/api/Jianghunew/sendmessage',
    method: 'POST',
    params: params
  });
}

// 立即结束问题
export function end_now_chat(params) {
  return requestPort({
    url: '/api/Jianghunew/end_now',
    method: 'POST',
    params: params
  });
}

//获取当前是否为工作日
export function isWorkDay(params) {
  return requestPort({
    url: '/api/index/isWorkDay',
    method: 'POST',
    params: params
  });
}

//对回答进行评价
export function evaluate(params) {
  return requestPort({
    url: '/api/Jianghunew/evaluate',
    method: 'POST',
    params: params
  });
}

//满意或不满意
export function satisfied(params) {
  return requestPort({
    url: '/api/Jianghunew/check_satisfied',
    method: 'POST',
    params: params
  });
}


//获取问题详情
export function getQuizDetail_chat(params) {
  return requestPort({
    url: '/api/Jianghunew/getQuizDetail',
    method: 'POST',
    params: params
  });
}

/* chatRoom使用 end */


//我的提问列表
export function getMyAsk(params) {
  return requestPort({
    url: '/api/user/getJianghuMyQuiz',
    method: 'POST',
    params: params
  });
}


//我的回答列表
export function getMyAnswer(params) {
  return requestPort({
    url: '/api/user/getJianghuMyAns',
    method: 'POST',
    params: params
  });
}

//我删除我的提问
export function delMyAsk(params) {
  return requestPort({
    url: '/api/user/delmyquiz',
    method: 'POST',
    params: params
  });
}



//问答发表评论
export function subComment(params) {
  return requestPort({
    url: '/api/Jianghunew/addCommentSubmit',
    method: 'POST',
    params: params
  });
}

//删除问答评论
export function delMyComment(params) {
  return requestPort({
    url: '/api/Jianghunew/delMyComment',
    method: 'POST',
    params: params
  });
}

//评论问答详情
export function collectMjDetail(params) {
  return requestPort({
    url: '/api/Jianghunew/setCollect',
    method: 'POST',
    params: params
  });
}

//点赞评论
export function getGood(params) {
  return requestPort({
    url: '/api/Jianghunew/new_setLikecomment',
    method: 'POST',
    params: params
  });
}

// 获取消息通知未读数
export function getMessage_count(params) {
  return requestPort({
    url: '/api/mymessage/getmessage_count',
    method: 'POST',
    params: params
  });
}

//获取他的主页回答列表
export function getTaAnswerList(params) {
  return requestPort({
    url: '/api/user/get_jianghu_answer',
    method: 'POST',
    params: params
  });
}

//获取专家评价
export function getExpertEvaluate(params) {
  return requestPort({
    url: '/api/user/get_jianghu_evaluate',
    method: 'POST',
    params: params
  });
}

//关注
export function setFollow(params) {
  return requestPort({
    url: '/api/Jianghu/setFollow',
    method: 'POST',
    params: params
  });
}


//获取我的关注列表
export function getFollowUserList(params) {
  return requestPort({
    url: '/api/Jianghu/getFollowUserList',
    method: 'POST',
    params: params
  });
}


//获取问答热门搜索
export function getHotSearch(params) {
  return requestPort({
    url: '/api/Jianghunew/getHotSearch',
    method: 'POST',
    params: params
  });
}


//获取问答历史搜索记录
export function getHistorySearch(params) {
  return requestPort({
    url: '/api/Jianghu/getHistorySearch',
    method: 'POST',
    params: params
  });
}

//清空财税江湖历史搜索记录
export function delHistorySearch(params) {
  return requestPort({
    url: '/api/Jianghu/delHistorySearch',
    method: 'POST',
    params: params
  });
}

// 问答新搜索
export function newGetSearch(params) {
  return requestPort({
    url: '/api/Index/new_xungetsearch',
    method: 'POST',
    params: params
  });
}


//获取问答券列表
export function getTicketList(params) {
  return requestPort({
    url: '/api/Wendacoupon/getList',
    method: 'POST',
    params: params
  });
}